<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>



    <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title><?php echo ($seo_title); ?></title>
<meta name="keywords" content="<?php echo ($seo_keywords); ?>" />
<meta name="description" content="<?php echo ($seo_description); ?>" />


<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">

<!-- No Baidu Siteapp-->
<meta http-equiv="Cache-Control" content="no-siteapp"/>

<link rel="icon" type="image/png" href="/Statics/Home/img/favicon.png">

<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="/Statics/Home/img/app-icon72x72@2x.png">

<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="PLAZOTTA"/>
<link rel="apple-touch-icon-precomposed" href="/Statics/Home/img/app-icon72x72@2x.png">

<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="/Statics/Home/img/app-icon72x72@2x.png">
<meta name="msapplication-TileColor" content="#0e90d2">

    <link rel="stylesheet" href="/Statics/Home/css/amazeui.min.css">
<link rel="stylesheet" href="/Statics/Home/css/reset.css">
<link rel="stylesheet" href="/Statics/Home/css/common.css">
<link rel="stylesheet" href="/Statics/Home/css/button.css">

<link rel="stylesheet" href="/Statics/Home/js/sco/css/scojs.css" />


    <!--<link rel="stylesheet" href="/Statics/Home/css/amazeui.switch.css">-->



</head>
<body>
<div class="am-g new-top am-padding-xs">


    <div class="am-fl am-padding-horizontal-sm">
        <a href="/"> <img class="am-margin-right-xs" src="/Statics/Home/img/top-icon.png" width="20px"  alt="">济美坊布锦画</a>
       </div>
    <div class="am-fr am-padding-horizontal-sm">
        <!--<i class="am-icon-search am-margin-right-xs" onclick="$('.search').slideToggle();"></i>-->
        <a   href="/Home/Product/cate"><i class="am-icon-search am-margin-right-xs" ></i></a>
        <!--<a class="am-margin-right-xs" href="<?php echo U('User/Favorite/index');?>">收藏</a>-->
        <a class="am-margin-right-xs" href="/Product/cate">筛选</a>
        <a class="" href="<?php echo U('User/Zuji/index');?>">我的记录</a>
    </div>


</div>

<div class="am-g  search am-padding-top-xs" style="display: none">


    <div class="am-u-sm-12">

        <form   method="get" action="<?php echo U('Product/index');?>" class=" " data-am-validator>




            <div class="am-form-group am-form-icon am-margin-0 ">
                <input type="text" class="am-form-field am-input-sm " value="<?php echo I('get.keyword');?>" name="keyword" placeholder="">
                <span class="am-icon-search  "></span>
            </div>


        </form>
    </div>








</div>


<form method="post" class="am-form  wukuang  form-horizontal J_ajaxForm" action='<?php echo U("");?>'>
<div class="am-g  well  common-border-bottom  order-dizhi" id="dizhi">


    <i class="am-icon-map-marker"></i>
    <i class="am-icon-angle-right"></i>
    <div class="am-block am-cf name">

        收货人: <?php echo ($default_address["name"]); ?></span>

        <span class="am-fr tel"><tel><?php echo ($default_address["tel"]); ?></tel></span>
    </div>

    <div class="am-margin-top-xs address">
        收货地址: <?php echo ($default_address["address"]); ?>
    </div>


    <input type="hidden" name="address_id" value="<?php echo ($default_address["id"]); ?>">

</div>


<div class="am-g  well  common-border-bottom  am-margin-top-sm ">


    <?php if(is_array($orderlist["data"])): $i = 0; $__LIST__ = $orderlist["data"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><div class=" am-cf cart-list-item common-border-bottom am-margin-vertical-sm am-bg-f5f5f5   ">



            <div class="am-u-sm-4 am-text-center  list_img"><img src="<?php echo ($v["thumb"]); ?>" class="am-img-responsive"></div>
            <div class="am-u-sm-5 am-text-xs">



                <a href="<?php echo U('Home/Product/show',array('id'=>$v['product_id']));?> " class="">
                    <h3 class="am-margin-0">
                        <?php echo ($v["title"]); ?></h3>
                    <div class="sku am-text-999" >

                        颜色分类:<?php echo ($v["color"]); ?>;尺码: <?php echo F('Var_chicun')[$v["chicun"]][name];?>:外框: <?php echo F('Var_waikuang')[$v["waikuang"]][name];?></div>
                </a>




            </div>

            <div class="am-u-sm-3 am-text-right">





                <div class="pay am-margin-top-sm am-cf div_info " >


                    <div class="">

                        <?php if($u[vip]): ?><span class="am-text-danger am-text-sm"> ￥ <span class="auto_price"><?php echo ($v["price_huiyuan"]); ?></span></span>
                            <?php else: ?>
                            <span class="am-text-danger am-text-sm"> ￥ <span class="auto_price"><?php echo ($v["price"]); ?></span></span><?php endif; ?>


                    </div>
                    <div class=" ">x<?php echo ($v["num"]); ?></div>



                </div>



            </div>

        </div><?php endforeach; endif; else: echo "" ;endif; ?>
</div>


    <!--<div href="" class="am-bg-fff am-padding-sm am-padding-vertical-lg am-block common-border-bottom">-->
        <!--<span> 配送方式</span>-->

        <!--<span class="am-fr am-text-sm am-text-right">  ￥0.00-->
            <!--<br> 顺丰 配送 </span>-->
    <!--</div>-->

    <!--<div href="" class="am-bg-fff am-padding-sm am-padding-vertical-lg am-block common-border-bottom">-->
        <!--<span> 配送方式</span>-->

        <!--<span class="am-fr am-text-sm am-text-right am-form-group" >-->



                <!--<select name="songdatime"   style="width: 18rem;" >-->
                    <!--<option value="2">请选择期望配送时间</option>-->
                    <!--<?php $_result=F('Var_songdatime');if(is_array($_result)): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>-->
                        <!--<option value="<?php echo ($v["name"]); ?>"><?php echo ($v["name"]); ?></option>-->

                    <!--<?php endforeach; endif; else: echo "" ;endif; ?>-->

                <!--</select>-->

        <!--</span>-->
    <!--</div>-->


    <div href="" class="am-bg-fff am-padding-sm am-padding-vertical-lg am-block common-border-bottom">
        <span> 优惠券</span>

        <span class="am-fr am-text-sm am-text-right am-form-group" >



                <select name="yhj"   style="width: 11rem;" >

                    <?php if(is_array($yhjs)): $i = 0; $__LIST__ = $yhjs;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><option value="<?php echo ($v["code"]); ?>"><?php echo ($v["title"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>

                    <option value="">不使用优惠券</option>

                </select>

        </span>
    </div>



    <!--<div  class=" am-bg-fff am-padding-sm am-block common-border-bottom">-->
        <!--<span> 使用积分抵用先进</span>-->

        <!--<span class="am-fr am-padding-top-sm">  <input type="checkbox" name="if_jf" class="am-switch am-round" checked /> </span>-->
    <!--</div>-->





    <div  class="am-bg-fff am-padding-sm am-block order-liuyan common-border-bottom">
        <span> 买家留言</span>

        <input type="text" name="desc" class="am-form-field" placeholder="选填:对本次交易的说明(建议填写已和卖家协商一致的内容)">

    </div>



    <div  class="am-padding-sm am-block  am-text-right">


        共<?php echo ($orderlist["znum"]); ?>件，合计：<span class="am-text-f60">￥<?php echo ($orderlist["zong"]); ?></span>


    </div>






<div data-am-widget="navbar" class="am-navbar am-cf am-navbar-index  common-border-top "
     id="">


    <div class="order-from-bottom am-text-right">

        <span class="am-margin-right-sm"> 合计：<span class="am-text-f60">￥<?php echo ($orderlist["zong"]); ?></span></span>

        <button  class="am-btn  am-btn-danger am-btn-xl ajax-post"  target-form="J_ajaxForm"  type="submit">提交订单</button>



    </div>
</div>
</form>

<div class="  am-popup am-text-left" tabindex="-1" id="dizhis">
    <div class="am-modal-dialog" style="height: 100%">
        <div class="am-modal-hd ">选择地址
            <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
        </div>

        <div class="" style="max-height: 100%; overflow: hidden; overflow-y: auto; padding-bottom: 4em">
        <div class="am-modal-bd am-text-left">

            <?php if(is_array($address)): $i = 0; $__LIST__ = $address;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><div class="am-g  well    am-margin-bottom-sm ">




                <div class="am-block am-cf am-margin-top-sm am-padding-horizontal-sm">

                    <span>收货人:<?php echo ($v["name"]); ?></span>

                    <span class="am-fr"><?php echo ($v["tel"]); ?></span>
                </div>

                <div class=" common-border-bottom am-padding-sm">
                    收货地址: <?php echo ($v["address"]); ?>
                </div>



                <div class="am-block am-cf ">


                        <a class="address_do am-btn am-btn-warning am-btn-block" data-id="<?php echo ($v["id"]); ?>" data-name="<?php echo ($v["name"]); ?>" data-tel="<?php echo ($v["tel"]); ?>" data-address="<?php echo ($v["address"]); ?>">使用</a>




                </div>


            </div><?php endforeach; endif; else: echo "" ;endif; ?>

            <a class="address_do am-btn am-btn-success am-btn-block" href="<?php echo U('User/Address/add',array('order'=>1));?>">添加新地址</a>




        </div>


        </div>

     </div>
</div>


    <!--[if lt IE 9]>
<script src="/Statics/Home/js/jquery.11.1.js"></script>
<script src="/Statics/Home/js/modernizr.js"></script>
<script src="/Statics/Home/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="/Statics/Home/js/jquery.min.js"></script>
<!--<![endif]-->
<script src="/Statics/Home/js/amazeui.min.js"></script>




<script src="/Statics/Home/js/sco/js/sco.message.js"></script>
<script src="/Statics/Home/js/common.js"></script>

<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>


    wx.config({
                debug: false,
                appId: '<?php echo ($jssign["appId"]); ?>',
                timestamp: '<?php echo ($jssign["timestamp"]); ?>',
            nonceStr: '<?php echo ($jssign["nonceStr"]); ?>',
            signature: '<?php echo ($jssign["signature"]); ?>',
            jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage']
    });

    var imgUrl='<?php echo ($imgUrl); ?>';
    var timeLineLink= '<?php echo ($timeLineLink); ?>';
    var tTitle= "<?php echo ($tTitle); ?>";
    var tContent= "<?php echo ($tContent); ?>";


    wx.ready(function () {



        wx.onMenuShareTimeline({
            title: tTitle, // 分享标题
            link:  timeLineLink, // 分享链接
            imgUrl:  imgUrl, // 分享图标
            success: function () {
                // 用户确认分享后执行的回调函数
            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        });

        wx.onMenuShareAppMessage({
            title:  tTitle, // 分享标题
            desc:  tContent, // 分享描述
            link:  timeLineLink, // 分享链接
            imgUrl:  imgUrl, // 分享图标
            type: '', // 分享类型,music、video或link，不填默认为link
            dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
            success: function () {
                // 用户确认分享后执行的回调函数
            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        });



    }, false);

</script>

    <!--<script src="/Statics/Home/js/amazeui.switch.js"></script>-->
<script>



    $(function(){


        $('#songdatime').on('click', function() {
            $('#my-prompt').modal({
                relatedTarget: this,
                onConfirm: function(e) {
                    alert('你输入的是：' + e.data || '')
                },
                onCancel: function(e) {
                    alert('不想说!');
                }
            });
        });




        $("#dizhi").click(function () {

            $("#dizhis").modal();

        })

        $(".address_do").click(function(){

            $("#dizhi").find(".name").html("收货人"+$(this).data("name"));
            $("#dizhi").find(".tel").html($(this).data("tel"));
            $("#dizhi").find(".address").html("收货地址"+$(this).data("address"));
            $("#dizhi").find("input").val($(this).data("id"));



            $("#dizhis").modal("close");

        })




    })


</script>








</body>
</html>